package com.entity;

import java.util.Date;

public class Auction {
    private Integer auctionId;
    private String auctionName;
    private Double startPrice;
    private Double upsetPrice;
    private Date startTime;
    private Date endTime;
    private String auctionPic;
    private String auctionDesc;

    public Auction(Integer auctionId, String auctionName, Double startPrice, Double upsetPrice, Date startTime, Date endTime, String auctionPic, String auctionDesc) {
        this.auctionId = auctionId;
        this.auctionName = auctionName;
        this.startPrice = startPrice;
        this.upsetPrice = upsetPrice;
        this.startTime = startTime;
        this.endTime = endTime;
        this.auctionPic = auctionPic;
        this.auctionDesc = auctionDesc;
    }

    public Auction() {
    }

    @Override
    public String toString() {
        return "Auction{" +
                "auctionId=" + auctionId +
                ", auctionName='" + auctionName + '\'' +
                ", startPrice=" + startPrice +
                ", upsetPrice=" + upsetPrice +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                ", auctionPic='" + auctionPic + '\'' +
                ", auctionDesc='" + auctionDesc + '\'' +
                '}';
    }

    public Integer getAuctionId() {
        return auctionId;
    }

    public void setAuctionId(Integer auctionId) {
        this.auctionId = auctionId;
    }

    public String getAuctionName() {
        return auctionName;
    }

    public void setAuctionName(String auctionName) {
        this.auctionName = auctionName;
    }

    public Double getStartPrice() {
        return startPrice;
    }

    public void setStartPrice(Double startPrice) {
        this.startPrice = startPrice;
    }

    public Double getUpsetPrice() {
        return upsetPrice;
    }

    public void setUpsetPrice(Double upsetPrice) {
        this.upsetPrice = upsetPrice;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getAuctionPic() {
        return auctionPic;
    }

    public void setAuctionPic(String auctionPic) {
        this.auctionPic = auctionPic;
    }

    public String getAuctionDesc() {
        return auctionDesc;
    }

    public void setAuctionDesc(String auctionDesc) {
        this.auctionDesc = auctionDesc;
    }
}
